package com.bbms.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 读者类型实体
 * @author Administrator
 *
 */
@Entity
@Table(name="bbms_user_reader_category")
public class ReaderCtaegory implements Serializable{
	
	private static final long serialVersionUID = 1L;
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="id")
	private int id;
	
	@Column(name="name")
	private String name;
	
	@Column(name="borrow_books_maxNum")
	private Integer borrowBooksMaxNum;
	
	@Column(name="borrow_books_maxTime")
	private Integer borrowBooksMaxTime;
	
	@Column(name="renew_borrow_maxNum")
	private Integer renewBorrowMaxNum;
	
	@Column(name="renew_borrow_maxTime")
	private Integer renewBorrowMaxTime;
	
	
	public ReaderCtaegory() {
		
	}
	public ReaderCtaegory(int id, String name, Integer borrowBooksMaxNum, Integer borrowBooksMaxTime,
			Integer renewBorrowMaxNum, Integer renewBorrowMaxTime) {
		super();
		this.id = id;
		this.name = name;
		this.borrowBooksMaxNum = borrowBooksMaxNum;
		this.borrowBooksMaxTime = borrowBooksMaxTime;
		this.renewBorrowMaxNum = renewBorrowMaxNum;
		this.renewBorrowMaxTime = renewBorrowMaxTime;
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getBorrowBooksMaxNum() {
		return borrowBooksMaxNum;
	}
	public void setBorrowBooksMaxNum(Integer borrowBooksMaxNum) {
		this.borrowBooksMaxNum = borrowBooksMaxNum;
	}
	public Integer getBorrowBooksMaxTime() {
		return borrowBooksMaxTime;
	}
	public void setBorrowBooksMaxTime(Integer borrowBooksMaxTime) {
		this.borrowBooksMaxTime = borrowBooksMaxTime;
	}
	public Integer getRenewBorrowMaxNum() {
		return renewBorrowMaxNum;
	}
	public void setRenewBorrowMaxNum(Integer renewBorrowMaxNum) {
		this.renewBorrowMaxNum = renewBorrowMaxNum;
	}
	public Integer getRenewBorrowMaxTime() {
		return renewBorrowMaxTime;
	}
	public void setRenewBorrowMaxTime(Integer renewBorrowMaxTime) {
		this.renewBorrowMaxTime = renewBorrowMaxTime;
	}
	
	@Override
	public String toString() {
		return "ReaderCtaegory [id=" + id + ", name=" + name + ", borrowBooksMaxNum=" + borrowBooksMaxNum
				+ ", borrowBooksMaxTime=" + borrowBooksMaxTime + ", renewBorrowMaxNum=" + renewBorrowMaxNum
				+ ", renewBorrowMaxTime=" + renewBorrowMaxTime + "]";
	}
	
}
